package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolExpressReconciliationSt;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationStParam;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationZtParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressReconciliationStResult;
import cn.stylefeng.guns.modular.tool.model.result.orderCount;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 申通对账管理 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-02-01
 */
public interface ToolExpressReconciliationStService extends IService<ToolExpressReconciliationSt> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-02-01
     */
    void add(ToolExpressReconciliationStParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-02-01
     */
    void delete(ToolExpressReconciliationStParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-02-01
     */
    void update(ToolExpressReconciliationStParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-02-01
     */
    ToolExpressReconciliationStResult findBySpec(ToolExpressReconciliationStParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-02-01
     */
    List<ToolExpressReconciliationStResult> findListBySpec(ToolExpressReconciliationStParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-02-01
     */
     LayuiPageInfo findPageBySpec(ToolExpressReconciliationStParam param,String condition,Long operateId);

     /**
      * 查询分页数据，Specification模式
      *
      * @author zhucx
      * @Date 2023-02-01
      */
      LayuiPageInfo findPageBySpecDz(ToolExpressReconciliationStParam param,String condition);

   	ResponseData getExceldata(MultipartFile file, Long reconciliationId, ResponseData data)throws Exception;

 	Workbook exportToExcel(Long reconciliationId);

 	void deleteBySpec(ToolExpressReconciliationStParam param);

 	boolean saveBatchList(List<ToolExpressReconciliationStParam> list);

	List<orderCount> findorderCount(ToolExpressReconciliationStParam param, Long operateId);

}
